﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneCard.Face8280Module.DeviceModel.Model
{
    /// <summary>
    /// 开门时段
    /// </summary>
    [Table("TimeGroup")]
    public class APIModel_TimeGroupDetail
    {
        public APIModel_TimeGroupDetail()
        {
        }

        public APIModel_TimeGroupDetail(int v)
        {
            Num = v;
            Week1 = "00:00--00:00/00:00--00:00/00:00--00:00/00:00--00:00/00:00--00:00/00:00--00:00/00:00--00:00/00:00--00:00";
            Week2 = Week1;
            Week3 = Week1;
            Week4 = Week1;
            Week5 = Week1;
            Week6 = Week1;
            Week7 = Week1;
        }

        [Key]
        [Required]
        [Column("GrpupNum")]
        public int Num { get; set; }
        /// <summary>
        /// 星期一
        /// </summary>
        public string Week1 { get; set; }
        /// <summary>
        /// 星期二
        /// </summary>
        public string Week2 { get; set; }
        /// <summary>
        /// 星期三
        /// </summary>
        public string Week3 { get; set; }
        /// <summary>
        /// 星期四
        /// </summary>
        public string Week4 { get; set; }
        /// <summary>
        /// 星期五
        /// </summary>
        public string Week5 { get; set; }
        /// <summary>
        /// 星期六
        /// </summary>
        public string Week6 { get; set; }
        /// <summary>
        /// 星期日
        /// </summary>
        public string Week7 { get; set; }
    }
}
